package com.itheima.homework.Four;

public class Demo {
    public static void main(String[] args) {

        Animal cat = new Animal(){
          @Override
          public void eat(){
              System.out.println("猫吃鱼");
          }

        };

        cat.eat();
        cat.dirnk();
    }



}
